<template>
	<view class="modifyAddress">
		<!-- 修改收货地址 -->
		<view class="top">
			<view class="top-box">
				<text>收货人</text>
				<input type="text" value="小明" />
			</view>
			<view class="top-box">
				<text>手机号</text>
				<input type="text" value="123456" />
			</view>
		</view>
		<view class="middle">
			<view class="middle-box">
				<text>所在地区</text>
				<text style="margin: 0 20rpx;">四川省成都市武侯区中海国际中心A座1303</text>
				<image style="width: 30rpx;height: 16rpx;" src="../../../../static/mine/bottomjiantou.png" mode=""></image>
			</view>
			<view class="middle-box">
				<text>详细地址</text>
				<text>四川省成都市武侯区中海国际中心A座1303</text>
			</view>
		</view>
		<view class="defaultBtn">
			<text>设为默认地址</text>
			<u-switch v-model="value" @change="change" activeColor="#FF7200" inactiveColor="#C2C2C2"></u-switch>
		</view>
		<view class="sureBtn">
			<view class="sureBtn-box">
				确定
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value:false,
			}
		},
		methods: {
			change(e) {
				console.log('change', e);
				
			},
		}
	}
</script>

<style lang="less" scoped>
	.sureBtn{
		width: 100%;
		height: 88rpx;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 0px;
		position: fixed;
		left: 0;
		bottom: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		.sureBtn-box{
			width: 670rpx;
			height: 60rpx;
			background: linear-gradient(163deg, #FF7200 0%, #EF130B 100%);
			opacity: 1;
			border-radius: 30rpx;
			font-size: 32rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			line-height: 48rpx;
			color: #FFFFFF;
			align-self: center;
			text-align: center;
		}
	}
	/deep/.u-switch{
		width: 80rpx !important;
		height: 32rpx !important;
		border-radius: 0 !important;
	}
	/deep/.u-switch__node{
		width: 40rpx !important;
		height: 32rpx !important;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 4rpx !important;
	}
.modifyAddress{
	padding: 40rpx;
	.defaultBtn{
		padding: 10rpx;
		margin-top: 20rpx;
		width: 100%;
		height: 58rpx;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 0px;
		line-height: 38rpx;
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #333333;
		display: flex;
		justify-content: space-between;
	}
	.middle{
		width: 100%;
		height: 240rpx;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 0px;
		padding: 10rpx;
		.middle-box{
			border-bottom:1px solid #F2F2F2;
			padding: 15rpx;
			display: flex;
			align-items: center;
			font-size: 32rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #333333;
			text:first-child{
				width: 180rpx;
			}
		}
	}
	.top{
		margin-bottom: 40rpx;
		width: 100%;
		height: auto;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 0px;
		padding: 10rpx;
		.top-box{
			border-bottom:1px solid #F2F2F2;
			padding: 15rpx;
			display: flex;
			align-items: center;
			font-size: 32rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #333333;
			text{
				width: 120rpx;
			}
		}
	}
}
</style>
